<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>项目详情 - 消防工程集团经营管理系统</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        body {
            background: #f3f4f6;
        }
    </style>
</head>
<body>
    <!-- Sidebar -->
    <div class="fixed left-0 top-0 bottom-0 w-64 bg-gray-900 text-white shadow-lg">
        <div class="p-6 border-b border-gray-800">
            <div class="flex items-center">
                <i class="fas fa-fire-extinguisher text-2xl text-blue-400 mr-3"></i>
                <div>
                    <div class="font-bold text-lg">消防工程集团</div>
                    <div class="text-xs text-gray-400">管理系统</div>
                </div>
            </div>
        </div>
        <nav class="p-4 space-y-2">
            <a href="dashboard.html" class="flex items-center px-4 py-3 text-gray-300 hover:bg-gray-800 rounded-lg">
                <i class="fas fa-chart-line w-5 mr-3"></i>
                <span>数据看板</span>
            </a>
            <a href="project-list.html" class="flex items-center px-4 py-3 bg-blue-600 rounded-lg text-white">
                <i class="fas fa-building w-5 mr-3"></i>
                <span>项目管理</span>
            </a>
            <a href="purchase-list.html" class="flex items-center px-4 py-3 text-gray-300 hover:bg-gray-800 rounded-lg">
                <i class="fas fa-shopping-cart w-5 mr-3"></i>
                <span>采购管理</span>
            </a>
            <a href="payment-list.html" class="flex items-center px-4 py-3 text-gray-300 hover:bg-gray-800 rounded-lg">
                <i class="fas fa-money-bill-wave w-5 mr-3"></i>
                <span>付款管理</span>
            </a>
            <a href="inventory.html" class="flex items-center px-4 py-3 text-gray-300 hover:bg-gray-800 rounded-lg">
                <i class="fas fa-warehouse w-5 mr-3"></i>
                <span>库存管理</span>
            </a>
            <a href="hr-dashboard.html" class="flex items-center px-4 py-3 text-gray-300 hover:bg-gray-800 rounded-lg">
                <i class="fas fa-users w-5 mr-3"></i>
                <span>人力成本</span>
            </a>
            <a href="system-settings.html" class="flex items-center px-4 py-3 text-gray-300 hover:bg-gray-800 rounded-lg">
                <i class="fas fa-cog w-5 mr-3"></i>
                <span>系统管理</span>
            </a>
        </nav>
    </div>

    <!-- Main Content -->
    <div class="ml-64">
        <!-- Header -->
        <header class="bg-white shadow-sm border-b border-gray-200 px-8 py-4">
            <div class="flex items-center justify-between">
                <div class="flex items-center">
                    <a href="project-list.html" class="text-gray-600 mr-4">
                        <i class="fas fa-arrow-left"></i>
                    </a>
                    <h1 class="text-2xl font-bold text-gray-800">项目详情</h1>
                </div>
                <button class="bg-blue-600 text-white px-4 py-2 rounded-lg hover:bg-blue-700">
                    <i class="fas fa-edit mr-2"></i>编辑
                </button>
            </div>
        </header>

        <main class="p-8">
            <!-- Project Info Card -->
            <div class="bg-white rounded-lg shadow-sm p-6 mb-6">
                <div class="flex items-start justify-between mb-6">
                    <div>
                        <h2 class="text-2xl font-bold text-gray-900 mb-2">消防工程A项目</h2>
                        <div class="flex items-center gap-4 text-sm text-gray-600">
                            <span><i class="fas fa-map-marker-alt mr-1"></i>XX市XX区XX路123号</span>
                            <span><i class="fas fa-building mr-1"></i>子公司A</span>
                            <span><i class="fas fa-user mr-1"></i>项目经理：张工</span>
                        </div>
                    </div>
                    <span class="bg-blue-100 text-blue-600 px-3 py-1 rounded-lg font-semibold">进行中</span>
                </div>

                <div class="grid grid-cols-4 gap-6">
                    <div>
                        <div class="text-sm text-gray-500 mb-1">合同金额</div>
                        <div class="text-xl font-bold text-gray-900">¥5,000,000</div>
                    </div>
                    <div>
                        <div class="text-sm text-gray-500 mb-1">已投入成本</div>
                        <div class="text-xl font-bold text-orange-600">¥3,200,000</div>
                    </div>
                    <div>
                        <div class="text-sm text-gray-500 mb-1">已付款金额</div>
                        <div class="text-xl font-bold text-green-600">¥2,500,000</div>
                    </div>
                    <div>
                        <div class="text-sm text-gray-500 mb-1">项目进度</div>
                        <div class="text-xl font-bold text-blue-600">60%</div>
                    </div>
                </div>

                <div class="mt-6">
                    <div class="text-sm text-gray-500 mb-2">进度条</div>
                    <div class="w-full bg-gray-200 rounded-full h-3">
                        <div class="bg-blue-500 h-3 rounded-full" style="width: 60%"></div>
                    </div>
                </div>
            </div>

            <!-- Tabs -->
            <div class="bg-white rounded-lg shadow-sm mb-6">
                <div class="border-b border-gray-200">
                    <div class="flex">
                        <button class="px-6 py-4 border-b-2 border-blue-600 text-blue-600 font-semibold">成本台账</button>
                        <button class="px-6 py-4 text-gray-600 hover:text-gray-800">人力成本</button>
                        <button class="px-6 py-4 text-gray-600 hover:text-gray-800">材料成本</button>
                        <button class="px-6 py-4 text-gray-600 hover:text-gray-800">付款记录</button>
                        <button class="px-6 py-4 text-gray-600 hover:text-gray-800">关联流程</button>
                    </div>
                </div>

                <!-- Cost Summary -->
                <div class="p-6">
                    <div class="grid grid-cols-3 gap-6 mb-6">
                        <div class="bg-blue-50 rounded-lg p-4 border-l-4 border-blue-500">
                            <div class="text-sm text-gray-600 mb-1">人力成本</div>
                            <div class="text-2xl font-bold text-blue-600">¥1,200,000</div>
                            <div class="text-xs text-gray-500 mt-2">占比：37.5%</div>
                        </div>
                        <div class="bg-green-50 rounded-lg p-4 border-l-4 border-green-500">
                            <div class="text-sm text-gray-600 mb-1">材料成本</div>
                            <div class="text-2xl font-bold text-green-600">¥1,500,000</div>
                            <div class="text-xs text-gray-500 mt-2">占比：46.9%</div>
                        </div>
                        <div class="bg-orange-50 rounded-lg p-4 border-l-4 border-orange-500">
                            <div class="text-sm text-gray-600 mb-1">其他成本</div>
                            <div class="text-2xl font-bold text-orange-600">¥500,000</div>
                            <div class="text-xs text-gray-500 mt-2">占比：15.6%</div>
                        </div>
                    </div>

                    <!-- Cost Details Table -->
                    <div class="overflow-x-auto">
                        <table class="w-full">
                            <thead class="bg-gray-50">
                                <tr>
                                    <th class="px-4 py-3 text-left text-xs font-semibold text-gray-600">日期</th>
                                    <th class="px-4 py-3 text-left text-xs font-semibold text-gray-600">类型</th>
                                    <th class="px-4 py-3 text-left text-xs font-semibold text-gray-600">项目</th>
                                    <th class="px-4 py-3 text-left text-xs font-semibold text-gray-600">金额</th>
                                    <th class="px-4 py-3 text-left text-xs font-semibold text-gray-600">备注</th>
                                </tr>
                            </thead>
                            <tbody class="divide-y divide-gray-200">
                                <tr>
                                    <td class="px-4 py-3 text-sm text-gray-700">2024-01-15</td>
                                    <td class="px-4 py-3 text-sm text-gray-700">材料采购</td>
                                    <td class="px-4 py-3 text-sm text-gray-700">消防栓采购</td>
                                    <td class="px-4 py-3 text-sm font-semibold text-gray-900">¥50,000</td>
                                    <td class="px-4 py-3 text-sm text-gray-500">采购单：CG20240115001</td>
                                </tr>
                                <tr>
                                    <td class="px-4 py-3 text-sm text-gray-700">2024-01-10</td>
                                    <td class="px-4 py-3 text-sm text-gray-700">人力成本</td>
                                    <td class="px-4 py-3 text-sm text-gray-700">1月工资</td>
                                    <td class="px-4 py-3 text-sm font-semibold text-gray-900">¥120,000</td>
                                    <td class="px-4 py-3 text-sm text-gray-500">项目团队工资</td>
                                </tr>
                                <tr>
                                    <td class="px-4 py-3 text-sm text-gray-700">2024-01-05</td>
                                    <td class="px-4 py-3 text-sm text-gray-700">材料采购</td>
                                    <td class="px-4 py-3 text-sm text-gray-700">消防管道采购</td>
                                    <td class="px-4 py-3 text-sm font-semibold text-gray-900">¥80,000</td>
                                    <td class="px-4 py-3 text-sm text-gray-500">采购单：CG20240105002</td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </main>
    </div>
</body>
</html>

